<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>极客协会员工信息管理系统</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- 导航栏 -->
<jsp:include page="head.jsp" />
<main>
    <h1>更新员工信息</h1>
    <form action="updateEmployee" method="post">
        工 号: <input type="text" name="empID" value="${employee.getEmpID()}" readonly><br><br>
        姓 名: <input type="text" name="empName" value="${employee.getEmpName()}" ><br><br>

        性 别: <input type="radio" name="empGender" value="男"  ${employee.getEmpGender() eq '男' ? 'checked' : ''}> 男
              <input type="radio" name="empGender" value="女" ${employee.getEmpGender() eq '女' ? 'checked' : ''}> 女<br><br>

        年 龄: <input type="number" name="empAge" value="${employee.getEmpAge()}"><br><br>
        部 门: <select name="empDepartment" required style="width: 170px;height: 20px;">
        <option value="技术部" ${employee.getEmpDepartment() eq '技术部' ?'selected' : ''}>技术部</option>
        <option value="宣传部" ${employee.getEmpDepartment()  eq '宣传部' ?'selected' : ''}>宣传部</option>
        <option value="财务部" ${employee.getEmpDepartment()  eq '财务部' ?'selected' : ''}>财务部</option>
        <option value="人事部" ${employee.getEmpDepartment()  eq '人事部' ?'selected' : ''}>人事部</option>
        <option value="保卫部" ${employee.getEmpDepartment()  eq '保卫部' ?'selected' : ''}>保卫部</option>
        <option value="供应部" ${employee.getEmpDepartment()  eq '供应部' ?'selected' : ''}>供应部</option>

    </select><br><br>
        职 位: <input type="text" name="empPosition" value="${employee.getEmpPosition()}"><br><br>
        入职日期: <input type="date" name="empHireDate" value="${employee.getEmpHireDate()}"><br><br>
        工 资: <input type="number" name="empSalary"value="${employee.getEmpSalary()}" step="0.01"><br><br>
        <input type="submit" value="提 交" style="width: 220px;">
    </form>

</main>
<!-- 登录信息 -->
<jsp:include page="foot.jsp" />
</body>
</html>